<?php
namespace zake\foundation\able\stream;


interface DuplexAble
{


    /**
     * 全局初始化
     * @param $pid
     * @return mixed
     *
     * @author liu.bin 2020-04-16 10:43
     */
    public function init($pid);


    /**
     * 读
     * @return ReadBufferAble|ReadAble|RwAble|RwBufferAble
     *
     * @author liu.bin 2020-04-01 08:59
     */
    public function getReadStream();

    /**
     * 写
     * @return WriteBufferAble|WriteAble|RwAble|RwBufferAble
     *
     * @author liu.bin 2020-04-01 08:59
     */
    public function getWriteStream();

}
